import request from "@/api/request.js";

export const getAllMapService = dataObj => {
  const params = new URLSearchParams();
  for (let key in dataObj) {
    params.append(key, dataObj[key]);
  }
  return request.get("/api-self/inspection/map", { params });
};

//测试用
// export const getAllMapService2 = () => {
//   return request.get("/api-self/inspection/map");
// };

export const getPointService = dataObj => {
  let url = `/api-self/inspection/map/${dataObj.mapId}`;
  return request.get(url);
};
